import 'package:test/test.dart';

import 'package:sow_app_mock/sow_app_mock.dart';

void main() {
  group('library controller test group', () {
    final MockLibraryPresenter presenter = MockLibraryPresenter();
    final controller = MockLibraryController(presenter);
    test("should present 16 novels when invoke init", () async {
      await controller.init();
      await Future.doWhile(() => presenter.flag = false);
      expect(presenter.hotRank, hasLength(17));
    });
  });
}
